#打印下图菱形
#          *
#         ***
#        *****
#       *******
#        *****
#         ***
#          *
num = int(input("enter a num:"))
mid_num = num//2
i = 0
for i in range(num):
    if(i<=mid_num):
        print(" "*(mid_num-i),(1+i*2)*"*"," "*(mid_num-i))
    else:
        print(" "*(i-mid_num),(1+(2*mid_num-i)*2)*"*"," "*(i-mid_num))

